package com.groupbuying.store.controller.forInternal;

import com.groupbuying.store.connector.SysconfigFeign;
import com.groupbuying.store.service.ChainStoresApiService;
import com.groupbuying.store.utils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @anthor zmlmagic
 * @date: 2019/01/30 11:53
 * @des
 **/

@Api("服务商获取地区")
@RestController
@RequestMapping("/storeArea")
public class StoreAreaController {
    @Autowired
    private SysconfigFeign sysconfigFeign;

    /**
     * 查询分类
     * @return
     */
    @ApiOperation(value = "查询地区", notes = "查询地区接口")
    @GetMapping()
    public R getAreaList(@RequestParam Map<String, Object> params) {
        return sysconfigFeign.getAreaList(params);
    }


}
